package com.example.project.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.example.project.annotation.Excel;
import com.example.project.core.domain.BaseEntity;

/**
 * 问题状态，定义问题的可能状态对象 t_issue_statuses
 * 
 * @author ruoyi
 * @date 2025-09-19
 */
public class IssueStatus extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/** 问题状态ID，主键 */
	private Long id;

	/** 状态名称 */
	@Excel(name = "状态名称")
	private String name;

	/** 是否为关闭状态 */
	@Excel(name = "是否为关闭状态")
	private Integer isClosed;

	/** 是否为默认状态 */
	@Excel(name = "是否为默认状态")
	private Integer isDefault;

	/** 状态颜色（十六进制） */
	@Excel(name = "状态颜色", readConverterExp = "十=六进制")
	private String htmlColor;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setIsClosed(Integer isClosed) {
		this.isClosed = isClosed;
	}

	public Integer getIsClosed() {
		return isClosed;
	}

	public void setIsDefault(Integer isDefault) {
		this.isDefault = isDefault;
	}

	public Integer getIsDefault() {
		return isDefault;
	}

	public void setHtmlColor(String htmlColor) {
		this.htmlColor = htmlColor;
	}

	public String getHtmlColor() {
		return htmlColor;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("name", getName())
				.append("isClosed", getIsClosed()).append("isDefault", getIsDefault())
				.append("htmlColor", getHtmlColor()).toString();
	}
}
